package com.etc.dao;

import java.util.List;


import com.etc.entity.Employees;
import com.etc.util.PageData;

public interface IEmployeesDao {
	//通过id查员工
	public Employees queryById(int empId);
	//查询所有员工
	public List<Employees> queryAllEmployees();
	//根据员工姓名和密码查询员工
	public Employees queryEmpByNameAndPwd(String empname, String emppwd);
	//分页查询  pageNo:当前页   pageSize:每页显示记录数   
	public PageData queryAllEmployeesd(int pageNo,int pageSize);	
	//添加员工
	public boolean addEmployees(Employees employees,int deptId);
	//修改员工信息
	public boolean modifyEmployees(Employees employees,int deptId);	
	public boolean modifyEmpPic(Employees employees);
	
	//根据员工Id删除员工(将状员工态改为离职)
	public boolean delsEmployees(int empId);
	
	//关键字分页查询  pageNo:当前页   pageSize:每页显示记录数   keys:多条件查询	
	public PageData queryKeyEmployeesd(int pageNo,int pageSize,int empId1,String empName1,
			int deptId1,int empStatus1,String hireDate1,String hireDate2);
}
